import { Module } from "@nestjs/common";
import { TypeOrmModule } from "@nestjs/typeorm";
import { User } from "../user";
import { UserController } from "./user.controller";
import { UserService } from "./user.service";
import { RoleModule } from "../role";
import { UserRoleModule } from "../user-role";

/**
 * 用户模块
 */
@Module({
  imports: [TypeOrmModule.forFeature([User]), RoleModule, UserRoleModule],
  controllers: [UserController],
  providers: [UserService],
  exports: [UserService],
})
export class UserModule {
}
